﻿<%@ Control Language="C#" %>
<%@ Register src="../module/Types-DBColumn-List-a.ascx" tagname="DBColumnList" tagprefix="inal" %>
<script runat="server">
    private int type = 0;
    private int root_id = 0;
    private string Keepurl = "#";
    string keepparameter="cid";
    private int Item_Lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Item_Lang == 1)
            Item_Lang = Utils.GetQueryString("lang", 1);
        Types types = new Types();
        RepeaterDefault.DataSource = types.List(Root_Id, Type, Item_Lang);
        RepeaterDefault.DataBind();
    }
    /// <summary>
    /// 对象类型
    /// </summary>
    public int Type
    {
        get { return type; }
        set { type = value; }
    }

    /// <summary>
    /// 跟目录ID
    /// </summary>
    public int Root_Id
    {
        get { return root_id; }
        set { root_id = value; }
    }
    /// <summary>
    /// 保留地址
    /// </summary>
    public string KeepUrl
    {
        get { return Keepurl; }
        set { Keepurl = value; }
    }
    /// <summary>
    /// 地址栏保留的参数
    /// </summary>
    public string KeepParameter
    {
        get { return keepparameter; }
        set { keepparameter = value; }
    }
</script>
<asp:Repeater runat="server" ID="RepeaterDefault">
<ItemTemplate>
    <a id="A<%#Eval("Id") %>" class="a_r<%#Eval("Root_Id") %> a_id<%#Eval("Id") %>" data-root="<%#Eval("Root_Id") %>" data-id="<%#Eval("Id") %>" data-showinputs="<%#Eval("Typ_Content") %>"  href="<%=KeepUrl%>&lang=<%=Item_Lang %>&r_<%=KeepParameter %>=<%#Eval("Root_Id") %>&<%=KeepParameter %>=<%#Eval("Id") %>"><%#Eval("Name") %></a>
</ItemTemplate>
</asp:Repeater>

